﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Q.M.Finance.Application.IServices;
using Q.M.Finance.Application.Services;

namespace Q.M.Finance.Write.API.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class Income_typeWriteController : ControllerBase
    {
        private readonly IIncome_typeServices income_TypeServices;
        public Income_typeWriteController(IIncome_typeServices income_typeServices)
        {
            this.income_TypeServices = income_typeServices;
        }
        /// <summary>
        /// 显示收入类型表
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public IActionResult GetIncome_Types()
        {
            var res = income_TypeServices.GetIncome_Types();
            return Ok(res);
        }
    }
}
